package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_comb_leader_choose", autoSave = true)
public class LogCombLeaderChoose extends BaseLogEntity {
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客组合id")
    private int combId;
    @FieldTypeAnnotation(desc = "旧凤魁id")
    private int oldLeaderId;
    @FieldTypeAnnotation(desc = "新凤魁id")
    private int newLeaderId;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCombLeaderChoose(long userId, int combId, int oldLeaderId, int newLeaderId) {
        this.userId = userId;
        this.combId = combId;
        this.oldLeaderId = oldLeaderId;
        this.newLeaderId = newLeaderId;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
